package com.itheima.jdk;

import com.itheima.dao.UserDao;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class DemoAop {
    public static void main(String[] args) {
        //创建springIoc
        ApplicationContext ac =new ClassPathXmlApplicationContext("spring.xml");
        UserDao userDao = ac.getBean(UserDao.class);
        userDao.save();
        //userDao.update();

    }
}
